/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.oi.eksekutif.domain;

import com.oi.eksekutif.util.StatusTagihan;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.OneToOne;

/**
 *
 * @author jasoet
 */
@Entity
@Table
public class Setoran implements Serializable {

    @Id
    @GeneratedValue
    private Long id;
    @ManyToOne
    private Pengemudi pengemudi;
    @ManyToOne
    private Mobil mobil;
    @OneToOne(targetEntity=SuratJalan.class)
    private SuratJalan suratJalan;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date tanggal;
    private int setoran;
    private int setoranTerbayar;
    private int denda;
    private int dendaTerbayar;
    private StatusTagihan status=StatusTagihan.BELUM;

    public int getDenda() {
        return denda;
    }

    public void setDenda(int denda) {
        this.denda = denda;
    }

    public int getDendaTerbayar() {
        return dendaTerbayar;
    }

    public void setDendaTerbayar(int dendaTerbayar) {
        this.dendaTerbayar = dendaTerbayar;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Mobil getMobil() {
        return mobil;
    }

    public void setMobil(Mobil mobil) {
        this.mobil = mobil;
    }

    public Pengemudi getPengemudi() {
        return pengemudi;
    }

    public void setPengemudi(Pengemudi pengemudi) {
        this.pengemudi = pengemudi;
    }

    public int getSetoran() {
        return setoran;
    }

    public void setSetoran(int setoran) {
        this.setoran = setoran;
    }

    public int getSetoranTerbayar() {
        return setoranTerbayar;
    }

    public void setSetoranTerbayar(int setoranTerbayar) {
        this.setoranTerbayar = setoranTerbayar;
    }

    public StatusTagihan getStatus() {
        return status;
    }

    public void setStatus(StatusTagihan status) {
        this.status = status;
    }

    public SuratJalan getSuratJalan() {
        return suratJalan;
    }

    public void setSuratJalan(SuratJalan suratJalan) {
        this.suratJalan = suratJalan;
    }

    public Date getTanggal() {
        return tanggal;
    }

    public void setTanggal(Date tanggal) {
        this.tanggal = tanggal;
    }
}
